<div class="row-fluid">
	<a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">列表数据</a>
    <div class="well">
	    <div class="btn-toolbar">
	    	<button class="btn btn-primary ifrm" data-url="/auth/doauth" data-width="520" data-height="400" data-title="添加员工" data-params="" style="position:relative;float:right;padding:3px 6px;margin-right:10px">添加员工</button>
		    <form>
		    	<label style="display: inline;">员工名称：</label><input class="input input-medium" type="text" name="fuser_name" value="<?=I('get.fuser_name')?>" />
		    	<label style="display: inline;">&nbsp;&nbsp;角色名称：</label><input class="input input-medium" type="text" name="fauth_name" value="<?=I('get.fauth_name')?>" />
		    	<input type="hidden" value="<?=I('get.res')?>" name="res" />
		    	<button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
		    </form>
		</div>
		<hr>
		<table class="table">
		      <thead>
		        <tr>
		          <th style="text-align:center">序号id</th>
		          <th style="text-align:center">员工名称</th>
		          <th style="text-align:center">员工角色</th>
		          <th style="text-align:center">添加时间</th>
		      	  <th style="text-align:center">操作</th>
		        </tr>
		      </thead>
		      <tbody>
		      	<?php if($getData){foreach($getData AS $key=>$val){?>
		        <tr> 
		          <td style="text-align:center;width:200px"><?=$val['fuser_id']?></td>
		          <td style="text-align:center"><?=$val['fuser_name']?></td>
		          <td style="text-align:center"><?=$val['fauth_name']?></td>
		          <td style="text-align:center;width:200px"> <?=date('Y-m-d H:i',$val['add_at'])?></td>
		          <td style="text-align:center;width:200px">
		              <a class="ifrm btn btn-info" href="javascript:void(0)" data-url="/auth/doauth" style="padding: 0px 4px;" data-width="550" data-height="500" data-title="修改员工信息" data-params="fuser_id/<?=$val['fuser_id']?>"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
		              <a href="/auth/delete?id=<?=$val['fuser_id']?>" class="deletes btn btn-danger" data-toggle="modal" style="padding: 0px 4px;"><i class="icon-remove"></i></a>
		          </td>
		        </tr>
		        <?php }}else{?>
		        	<td style="text-align:center;vertical-align:middle" colspan=5>暂无数据</td>
		        <?php }?>
		      </tbody>
		   </table>
		   <span style="float:right;margin-top:-44px"><?=$page?></span>
	</div>
</div>
<script>
$(function(){
	$('.deletes').live('click',function(){
		if(!window.confirm('确认删除吗 ?')){
			return false;
		}
		window.location = $(this).attr('href');
	});
	$('.decate').live('click',function(){
		if(!window.confirm('确认'+$(this).attr('title')+'吗 ?')){
			return false;
		}
		window.location = $(this).attr('href');
	});
})
</script>